<%@page import="model.entity.role.PageTask"%>
<%@page import="java.util.List"%>
<%@page import="model.entity.role.Users"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<% Users user = (Users) session.getAttribute("user"); %>
<div id="tieuDe">
	<div id="taiKhoan">
		<ul>
		<% if(user == null) { %>
			<li><a class="jqButton" href="DanhNhapDangKy.jsp">Đăng nhập - Đăng Ký</a></li>
		<%} else {  List<PageTask> listTask = user.getGroupRole().getPageTasks(); %>
				<li><a>Chào <%=user.getFullName() %></a></li>
			<% for(PageTask task : listTask) { %>
				<li><a class="jqButton" href="<%=task.getCommandLink()%>"><%=task.getTaskName()%></a></li>
			<%} %>
			<li><a class="jqButton" href="../UserLogin?command=signOutH" >Đăng Xuất</a></li>
		<% } %>
		</ul>
	</div>
	<div id="khungTen">
		<iframe src="http://localhost:8087/NongLam_Web_FashionShop/shop/header/timeline.html" height="360px" style="width: 958px;"></iframe>
	</div>
	<!-- khung menu -->

	<div id="khungMenu">
		<div class="content">
			<ul id="sdt_menu" class="sdt_menu">
				<li><a href="TrangChu.jsp"> <img src="./../images/shop/menuFashion.jpg" alt="" />
						<span class="sdt_active"></span> <span class="sdt_wrap"> <span
							class="sdt_link">fashon shop</span> <span class="sdt_descr">thời
								trang cho tuổi teen</span>
					</span>
				</a></li>
				<li><a href="../FilterProduct?type=theme&nameOfType=Teen"> <img src="./../images/shop/menuHangMoi.jpg" alt="" />
				<span class="sdt_active"></span> <span class="sdt_wrap"> <span
							class="sdt_link">hàng hot</span> <span class="sdt_descr">sản
								phẩm bán chạy nhất</span>
					</span>
				</a></li>
				<li><a href="DanhSachSanPham.jsp"> <img src="./../images/shop/menuNew.jpg" alt="" />
						<span class="sdt_active"></span> <span class="sdt_wrap"> <span
							class="sdt_link">new</span> <span class="sdt_descr">hàng
								mới về</span>
					</span>
				</a></li>
				<li><a href="#"> <img src="./../images/shop/menuAoDoi.jpg" alt="" />
						<span class="sdt_active"></span> <span class="sdt_wrap"> <span
							class="sdt_link">áo đôi</span> <span class="sdt_descr">thời
								trang cặp đôi</span>
					</span>
				</a></li>
				<li><a href="#"> <img src="./../images/shop/menuLinhTinh.jpg" alt="" />
						<span class="sdt_active"></span> <span class="sdt_wrap"> <span
							class="sdt_link">linh tinh</span> <span class="sdt_descr">phụ
								kiển thời trang</span>
					</span>
				</a></li>
				<li><a href="#"> <img src="./../images/shop/menuSale.jpg" alt="" />
						<span class="sdt_active"></span> <span class="sdt_wrap"> <span
							class="sdt_link">sale off</span> <span class="sdt_descr">hàng
								giảm giá</span>
					</span>
				</a></li>
			</ul>
		</div>
	</div>

</div>